adamant-kite-43734
11/19/2023, 3:32 PMbored-farmer-36655
11/19/2023, 4:42 PMadamant-football-46852
11/19/2023, 11:51 PMbored-farmer-36655
11/20/2023, 12:10 AMadamant-football-46852
11/20/2023, 12:10 AMbored-farmer-36655
11/20/2023, 12:12 AMscp -- root@<hostname>:/etc/rancher/k3s/k3s.yaml $(pwd)
where hostname or ip addressadamant-football-46852
11/20/2023, 12:14 AMbored-farmer-36655
11/20/2023, 12:16 AMadamant-football-46852
11/20/2023, 12:24 AMadamant-football-46852
11/20/2023, 12:26 AMbored-farmer-36655
11/20/2023, 12:26 AMadamant-football-46852
11/20/2023, 12:27 AMbored-farmer-36655
11/20/2023, 12:28 AMbored-farmer-36655
11/20/2023, 12:31 AMadamant-football-46852
11/20/2023, 12:37 AMbored-farmer-36655
11/20/2023, 12:42 AMbored-farmer-36655
11/20/2023, 12:47 AMadamant-football-46852
11/20/2023, 12:50 AMbored-farmer-36655
11/20/2023, 12:58 AMls /var/lib/rancher/rke/
?adamant-football-46852
11/20/2023, 2:10 AMadamant-football-46852
11/20/2023, 2:13 AMbored-farmer-36655
11/20/2023, 2:27 AMadamant-football-46852
11/20/2023, 3:07 AMbored-farmer-36655
11/20/2023, 3:59 AMbored-farmer-36655
11/20/2023, 4:01 AMexport KUBECONFIG=$(pwd)/k3s.yaml
then use kubectl get nodes
to ensure it's in contact, then you should get your livez information.bored-farmer-36655
11/20/2023, 4:16 AM:~> mkdir wang-nan
:~> cd wang-nan/
:~/wang-nan> scp -- root@hostname:/etc/rancher/k3s/k3s.yaml $(pwd)
k3s.yaml 100% 2957 1.6MB/s 00:00
:~> sed -i 's/127.0.0.1/xxx.xxx.xxx.xxx/g' k3s.yaml
:~/wang-nan> export KUBECONFIG=$(pwd)/k3s.yaml
:~/wang-nan> kubectl get node
NAME STATUS ROLES AGE VERSION
hostname Ready control-plane,master 47d v1.26.9+k3s1
:~/wang-nan> kubectl get --raw /livez?verbose
[+]ping ok
[+]log ok
[+]etcd ok
[+]poststarthook/start-kube-apiserver-admission-initializer ok
[+]poststarthook/generic-apiserver-start-informers ok
[+]poststarthook/priority-and-fairness-config-consumer ok
[+]poststarthook/priority-and-fairness-filter ok
[+]poststarthook/storage-object-count-tracker-hook ok
[+]poststarthook/start-apiextensions-informers ok
[+]poststarthook/start-apiextensions-controllers ok
[+]poststarthook/crd-informer-synced ok
[+]poststarthook/bootstrap-controller ok
[+]poststarthook/rbac/bootstrap-roles ok
[+]poststarthook/scheduling/bootstrap-system-priority-classes ok
[+]poststarthook/priority-and-fairness-config-producer ok
[+]poststarthook/start-cluster-authentication-info-controller ok
[+]poststarthook/start-kube-apiserver-identity-lease-controller ok
[+]poststarthook/start-kube-apiserver-identity-lease-garbage-collector ok
[+]poststarthook/start-legacy-token-tracking-controller ok
[+]poststarthook/aggregator-reload-proxy-client-cert ok
[+]poststarthook/start-kube-aggregator-informers ok
[+]poststarthook/apiservice-registration-controller ok
[+]poststarthook/apiservice-status-available-controller ok
[+]poststarthook/kube-apiserver-autoregistration ok
[+]autoregister-completion ok
[+]poststarthook/apiservice-openapi-controller ok
[+]poststarthook/apiservice-openapiv3-controller ok
livez check passed
adamant-football-46852
11/20/2023, 4:34 AMbored-farmer-36655
11/20/2023, 4:35 AMkubectl get namespaces --kubeconfig=k3s.yaml
NAME STATUS AGE
local Active 47d
kube-node-lease Active 47d
kube-public Active 47d
default Active 47d
cattle-impersonation-system Active 47d
kube-system Active 47d
cattle-system Active 47d
cattle-fleet-system Active 47d
cattle-monitoring-system Active 12d
cattle-dashboards Active 12d
adamant-football-46852
11/20/2023, 4:37 AMbored-farmer-36655
11/20/2023, 4:39 AMlocal
one?adamant-football-46852
11/20/2023, 4:41 AMbored-farmer-36655
11/20/2023, 4:42 AMadamant-football-46852
11/20/2023, 4:47 AMbored-farmer-36655
11/20/2023, 4:52 AMbored-farmer-36655
11/20/2023, 4:53 AMbored-farmer-36655
11/20/2023, 4:55 AMadamant-football-46852
11/20/2023, 8:44 AMbored-farmer-36655
11/20/2023, 1:16 PM